Hologram
The hologram are like Displays but instead of being in 2D, its in 3D. You can show objects in 3D with this.
Functions
createCube
Hologram.createCube( position, rotation, scale, color )
Creates a cube object
Arguments:
- position [ Vec3 ] The position of the object.
- rotation [ Vec3 ] The rotation of the object.
- scale [ Vec3 ] The scale of the object.
- color [ Color|string ] The color of the object.
Returns:
- [ integer ] The id of the object.
createSphere
Hologram.createSphere( position, rotation, scale, color )
Creates a sphere object
Arguments:
- position [ Vec3 ] The position of the object.
- rotation [ Vec3 ] The rotation of the object.
- scale [ Vec3 ] The scale of the object.
- color [ Color|string ] The color of the object.
Returns:
- [ integer ] The id of the object
createCustomObject
Hologram.createCustomObject( uuid, position, rotation, scale, color )
Like createCube or createSphere but u can pass any kind of object from whatever loaded mod! (Via UUID).
- uuid [ Uuid ] The uuid of the object.
- position [ Vec3 ] The position of the object.
- rotation [ Vec3 ] The rotation of the object.
- scale [ Vec3 ] The scale of the object.
- color [ Color|string ] The color of the object.
Returns:
- [ integer ] The id of the object.
getObject
Hologram.getObject( index )
Gets the object via Object ID and returns a table containing the data of that object or nil since it doesn't exist.
Arguments:
- index [ number ] The object you wanna get its data.
Returns:
- [ HologramObject? ] Ether u get a table (so the object exists) or nil (so the object does NOT exist)